package com.beeantec.jnrerc.mapper;

import com.baomidou.mybatisplus.core.metadata.IPage;
import com.baomidou.mybatisplus.extension.plugins.pagination.Page;
import com.beeantec.jnrerc.dto.ExamDTO;
import com.beeantec.jnrerc.dto.response.ExamOnlineRespDTO;
import com.beeantec.jnrerc.dto.response.ExamReviewRespDTO;
import com.beeantec.jnrerc.entity.Exam;
import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Param;

/**
 * <p>
 * 课程 Mapper 接口
 * </p>
 *
 * @author anthony
 * @since 2022-01-21
 */
@Mapper
public interface ExamMapper extends BaseMapper<Exam> {



    /**
     * 查找分页内容
     * @param page
     * @param query
     * @return
     */
    IPage<ExamReviewRespDTO> reviewPaging(Page page, @Param("query") ExamDTO query);

    /**
     * 在线考试分页响应类-考生视角
     * @param page
     * @param query
     * @return
     */
    IPage<ExamOnlineRespDTO> online(Page page, @Param("query") ExamDTO query);



}
